package main.java.org.mapper;

import main.java.Exam.pojo.Entity.Log;
import main.java.Exam.pojo.tableVO.LogVO;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface LogMapper {

@Select("select userName,Loginfo,createTime from tb_log")
    List<LogVO> getlog();

    @Insert("insert into tb_log(operator_account, operator_name, module, operation_time, result,operation_type) " +
            "values (#{operatorAccount}, #{operatorName}, #{module}, #{operationTime}, #{result},#{operationType})")
  void inset(Log log);

}
